package controllers;

import is.ru.honn.rupin.service.FollowerService;
import is.ru.honn.rupin.service.PinService;
import is.ru.honn.rupin.service.UserService;
import is.ru.honn.rupin.service.UserServiceData;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;
import play.mvc.Controller;

/**
 * Since all of the Controllers used utilize the Service layer from is.ru.honn.rupin
 * This Class contains all of the services and follows the layered supertype pattern.
 */
public class RuPinController extends Controller
{
    protected static ApplicationContext ctx = new FileSystemXmlApplicationContext("/conf/ApplicationContext.xml");
    protected static UserService userService = (UserService)ctx.getBean("userService");
    protected static PinService pinService = (PinService)ctx.getBean("pinService");
    protected static FollowerService followerService =(FollowerService)ctx.getBean("followerService");

}